<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>后台管理模板</title>

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="favicon.ico">
    <link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/css/animate.css" rel="stylesheet">
    <link href="/css/style.css?v=4.1.0" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg fixed-nav" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <span><img alt="image" th:src="@{/img/school.png}" width="100px" height="100px"/></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold" th:text="${user.getUserName()}"></strong></span>
                                <span class="text-muted text-xs block">管理员<b class="caret"></b></span>
                                </span>
                            </a>

                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li style="display: flex;justify-content:center;align-items:center;background-color: white"><button data-toggle="modal" data-target="#myModal" href="#">修改密码</button>
                                </li>
                                <li style="display: flex;justify-content:center;align-items:center;background-color: white"><a th:href="@{/logout}">安全退出</a>
                                </li>
                            </ul>
                        </div>
                        <div class="logo-element">MVC
                        </div>
                    </li>
                    <li class="active">
                        <a href="/tindex">
                            <i class="fa fa fa-bar-chart-o"></i>
                            <span class="nav-label">首页</span>
                            <span class="fa arrow"></span>
                        </a>
                    </li>
                    <li>
                        <a href="/allUser">
                            <i class="fa fa fa-bar-chart-o"></i>
                            <span class="nav-label">所有用户列表</span>
                            <span class="fa arrow"></span>
                        </a>
                    </li>
                    <li>
                        <a href="/punch_in_record">
                            <i class="fa fa fa-bar-chart-o"></i>
                            <span class="nav-label">打卡记录查询</span>
                            <span class="fa arrow"></span>
                        </a>
                    </li>
                    <li>
                        <a href="/multiple_conditions">
                            <i class="fa fa fa-bar-chart-o"></i>
                            <span class="nav-label">用户多条件查询</span>
                            <span class="fa arrow"></span>
                        </a>
                    </li>
                    <li>
                        <a href="/high_risk">
                            <i class="fa fa fa-bar-chart-o"></i>
                            <span class="nav-label">高危地区管理</span>
                            <span class="fa arrow"></span>
                        </a>
                    </li>

                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-fixed-top" role="navigation" style="margin-bottom: 0 ;background:#345f73">
                    <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
                        <form role="search" class="navbar-form-custom" method="post" action="search_results.html">
                            <div class="form-group">
                               <input type="text" style=" color:#FFF; font-size:20px" value="后台管理系统" class="form-control" disabled="disabled" name="top-search" id="top-search">
                              
                            </div>
                        </form>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown hidden-xs">
                            <a  th:href="@{/logout}" class="right-sidebar-toggle" aria-expanded="false">
                               <i class="fa fa fa-sign-out"></i>安全退出
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs" style="display: flex;  justify-content:space-between">
                <span>欢迎<span th:text="${user.getUserName()}"></span>管理员</span>
                <span th:text="${if_clo}?'您未打卡，请前往打卡':'您已打卡'" style="color: red"></span>
                <a href="/admin_clock" th:if="${if_clo}">点击打卡</a>
                <a href="#" class="roll-nav roll-right J_tabExit" id="alarm-fullscreen-toggler"><i class="fa fa-arrows-alt"></i> 全屏</a>
            </div>
            <div class="row J_mainContent" id="content-main">


                <div class="modal fade" id="myModal">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <!-- 模态框头部 -->
                            <div class="modal-header">
                                <h4 class="modal-title">修改密码</h4>
                                <button type="button" class="close" data-dismiss="modal">&times;</button>
                            </div>

                            <!-- 模态框主体 -->
                            <div class="modal-body">
                                <form action="/addDangerRegion" method="post">
                                    原密码：<input id="diqu" type="text" name="dangerRegion" required onfocus="this.blur()"><br>
                                    新密码：
                                    <input type="text" list="danger_list" name="dangerLevel" required/>

                                    <br>
                                    <input type="submit" th:value="提交">
                                </form>
                            </div>

                            <!-- 模态框底部 -->
                            <div class="modal-footer">
                                <button type="submit" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                            </div>


                        </div>
                    </div>
                </div>


                <div class="row">
                    <div class="col-sm-3">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <span class="label label-success pull-right">日</span>
                                <h5>总人数</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins" th:text="${count}">1000</h1>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <span class="label label-primary pull-right">日</span>
                                <h5>普通用户</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins" th:text="${users}">1000</h1>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <span class="label label-danger pull-right">日</span>
                                <h5>今日已打卡</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins" th:text="${alerty_clock}"></h1>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <span class="label label-danger pull-right">日</span>
                            <h5>今日未打卡</h5>
                        </div>
                        <div class="ibox-content">
                            <h1 class="no-margins" th:text="${no_clock}"></h1>
                        </div>
                    </div>
                </div>
                    <div class="col-sm-3">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <span class="label label-danger pull-right">日</span>
                                <h5>低分险地区数</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins" th:text="${low}"></h1>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <span class="label label-danger pull-right">日</span>
                                <h5>中风险地区数</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins" th:text="${zhong}"></h1>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <span class="label label-danger pull-right">日</span>
                                <h5>高风险地区数</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins" th:text="${high}"></h1>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <span class="label label-danger pull-right">日</span>
                                <h5>体温异常用户数</h5>
                            </div>
                            <div class="ibox-content">
                                <h1 class="no-margins" th:text="${tiwen_high}"></h1>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <div class="footer">
                <div class="pull-right">&copy; 2021 <a href="#" target="_blank">东莞理工学院</a>
                </div>
            </div>
        </div>
    </div>

    <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/quanping.js"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="js/plugins/layer/layer.min.js"></script>

    <!-- 自定义js -->
    <script src="js/hplus.js?v=4.1.0"></script>
    <script type="text/javascript" src="js/contabs.js"></script>

    <!-- 第三方插件 -->
    <script src="js/plugins/pace/pace.min.js"></script>

</body>

</html>
